﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Com.JunCaiSoft.Common.IDao
{
    public interface IGetDao<T> : IDataCoreAccessObject<T> where T : class, new()
    {
        T Get(object id);
        T Get(Expression<Func<T, bool>> where);

        TEntity Get<TEntity>(object id) where TEntity : class, new();
        TEntity Get<TEntity>(Expression<Func<TEntity, bool>> where) where TEntity : class, new();
    }
}
